/**
 * Created by henian.xu on 2017/7/6 0006.
 * 工具类
 */

define(
    function () {

        /**
         * 工具类
         * @constructor
         */
        function Utils() {
        }

        var pro = Utils.prototype; // 简化原形

        /**
         * typescript 的类扩展方法
         */
        pro.classExtends = (this && this.__extends) || (function () {
                var extendStatics = Object.setPrototypeOf ||
                    ({__proto__: []} instanceof Array && function (d, b) {
                        d.__proto__ = b;
                    }) ||
                    function (d, b) {
                        for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
                    };
                return function (d, b) {
                    extendStatics(d, b);
                    function __() {
                        this.constructor = d;
                    }

                    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
                };
            })();

        return Utils
    }
);

